
package com.example.dubbo.api.dubbo;

import com.example.dubbo.api.response.ObjectResponse;

/**
 * The interface Account service.
 * @author Liyuhang
 */
public interface AccountService {

    /**
     * 余额扣款
     *
     * @param userId 用户ID
     * @param money  扣款金额
     * @return  ObjectResponse  扣款金额
     */
    ObjectResponse debit(String userId,int money);
}
